<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>listOrders</title>
    <link rel="StyleSheet" href="/css/jpetstore.css" type="text/css" media="screen"/>
</head>
<body>
<div th:replace="common/top">
</div>

<div id="Content">
    <h2>My Orders</h2>

    <table>
        <tr>
            <th>Order ID</th>
            <th>Date</th>
            <th>Total Price</th>
        </tr>


        <tr th:each="order:${orderList}">

            <td>
                <a th:text="${order.orderId}" th:href="@{/order/viewdetailorder(orderId=${order.orderId})}" > order.orderId </a>
            </td>

            <td th:text="${order.orderDate}"
                pattern="yyyy/MM/dd hh:mm:ss" >date</td>
            <td th:text="${order.totalPrice}"
                pattern="$#,##0.00" >price</td>
        </tr>

    </table>
</div>

<div th:replace="common/bottom">
</div>
</body>
</html>